using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 售票站点
    /// </summary>
    public class TicketStation : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 所属景区
        /// </summary>
        [Required(ErrorMessage = "票型名称不能为空")]
        [StringLength(50)]
        public Guid ScenicSpotId { get; set; }
        [ForeignKey("ScenicSpotId")]
        public virtual ScenicSpot ScenicSpot { get; set; }
        /// <summary>
        /// 站点名称
        /// </summary>
        public string StationName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remand { get; set; }
    }
}
